class_name Action
extends Node

# 行动类型
enum Type {
	BASE,
	CONDITION,
}

@export var sound: AudioStream
@export var intend: Intend
@export var type: Type
# 权重
@export_range(0.0, 10.0) var weight := 0.0

# 累计权重
@onready var sumWeight := 0.0

var enemy: Enemy
var target: Node2D

# 行动是否可执行
func isPerform() -> bool:
	return false

func performAction() -> void:
	pass
